package com.newtouch.bxzs.common.base.util;

import java.util.HashMap;
import java.util.Map;

import com.newtouch.bxzs.common.base.constant.RabbitMQConstant;

/**
 * 消息队列工具类
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021年2月22日</td>
 * <td>Amour</td>
 * <td>Create</td>
 * </tr>
 * </table>
 * 
 * @author Amour
 * 
 * @version 1.0.0
 * @since 1.0.0
 */
public class RabbitMQUtils {

	public static Map<String, Object> createUserJobNumberRabbitMap(Object userJobNumberList, Object message,
			Object notificationSubtype) {
		Map<String, Object> messageMap = new HashMap<>(3);
		messageMap.put(RabbitMQConstant.USER_JOB_NUMBER_LIST_STR, userJobNumberList);
		messageMap.put(RabbitMQConstant.MESSAGE_STR, message);
		messageMap.put(RabbitMQConstant.NOTIFICATION_SUB_TYPE_STR, notificationSubtype);
		return messageMap;
	}

	public static Map<String, Object> createUserIdRabbitMap(Object userJobNumberList, Object message,
			Object notificationSubtype) {
		Map<String, Object> messageMap = new HashMap<>(3);
		messageMap.put(RabbitMQConstant.USER_ID_LIST_STR, userJobNumberList);
		messageMap.put(RabbitMQConstant.MESSAGE_STR, message);
		messageMap.put(RabbitMQConstant.NOTIFICATION_SUB_TYPE_STR, notificationSubtype);
		return messageMap;
	}
}
